package cn.anecansaitin.inet.mixins;

import cn.anecansaitin.inet.TranslateHelper;
import mcjty.rftoolsbase.api.xnet.channels.IChannelSettings;
import mcjty.rftoolsbase.api.xnet.gui.IEditorGui;
import mcjty.rftoolsbase.api.xnet.helper.DefaultChannelSettings;
import mcjty.xnet.apiimpl.items.ItemChannelSettings;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;

@Mixin(ItemChannelSettings.class)
public abstract class ItemChannelSettingMixin extends DefaultChannelSettings implements IChannelSettings {
    @Shadow
    private ItemChannelSettings.ChannelMode channelMode;

    @Override
    public void createGui(IEditorGui gui) {
        gui.nl().choices(ItemChannelSettings.TAG_MODE, TranslateHelper.getText("inet.controller.connector_edit_panel.button.item.tooltip"), channelMode, ItemChannelSettings.ChannelMode.values());
    }
}
